package io.renren.modules.sys.back.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.back.dao.BtCtXuanxingzhinanDetailDao;
import io.renren.modules.sys.back.entity.BtCtXuanxingzhinanDetailEntity;
import io.renren.modules.sys.back.service.BtCtXuanxingzhinanDetailService;


@Service("btCtXuanxingzhinanDetailService")
public class BtCtXuanxingzhinanDetailServiceImpl extends ServiceImpl<BtCtXuanxingzhinanDetailDao, BtCtXuanxingzhinanDetailEntity> implements BtCtXuanxingzhinanDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BtCtXuanxingzhinanDetailEntity> page = this.selectPage(
                new Query<BtCtXuanxingzhinanDetailEntity>(params).getPage(),
                new EntityWrapper<BtCtXuanxingzhinanDetailEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public Long insertOneBackprimkey(BtCtXuanxingzhinanDetailEntity entity){
        return baseMapper.insertOneBackprimkey(entity);
    }
}
